package main

import (
	"fmt"
	create_module "implements.fun/greetings"
	"log"
	/**
	因为并未发布所以要使用命令将模块本地化
	go mod edit -replace implements/greetings=../create-module
	*/)

func main() {
	log.SetPrefix("greetings: ")
	log.SetFlags(0)

	message := create_module.Hello("Tom")
	fmt.Println(message)

	hello2, err := create_module.Hello2("Jack")
	if err != nil {
		log.Println(err)
		//log.Fatal(err)
	}
	fmt.Println(hello2)

	names := []string{"Gladys", "Samantha", "Darrin"}
	messages, err := create_module.Hellos(names)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(messages)

}
